package oauth.service.finger;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import oauth.service.finger.MatchResponse.Status.Entry;

/**
 * @author Pan JinWen
 * @time 2016年5月21日下午5:15:28
 */
@Service
public class FingerMatchWS
{
	private static String one = "QwErEgFjPwAAAAAAAAAAAAAAAC4BmoCKAP///////8cch/xHIdv8aSfT/JkplvwwLez8IjdF/GVBFvyiRI38l06b/MFadfxvWxH8M19U/BNjafyXYZj8i2k//txqVvygfYf8s4Nw/OSGS/w4ilv80JJU/EybUvxDoRn+OKNo/GGwXfyPsWD8G7Nw/Iq3aPzMtUb838M4/H/GYP6Q2KL8r9k0/NTmKfyY9hT82foW/GEJiv2TEw/9HyA7/2MiUP9VJkb/wCS8/ZcnB/2hN7H9XUZN/45XrP0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFU=";
	// private static String two =
	// "QwErEgFjPgAAAAAAAAAAAAAAADEBmnZgAP///////8ATi/yNF6P8ORvX/FUg0/wbJvb8ZS3K/JUum/xULxb8aDQL/IY1p/wTO0z8YUEL/IJBqvy5QX38fUpI/ntSuvwgVk/8kliU/NdZU/wIZhH+d2Y1/qNlcvzdc0X8c3YZ/iJ9Wvy/fUn8TIFd/ECJZfwzjin+JJhr/L6cOPx5nSL80qgt/KG3MfzExh/8hdIR/MzYEfxa7ZH8hfEP/LYCv/1RA1H/iAoI/UENSv8NEkH/mRa6/VcyVP+JPLH9hUwG/W1WV/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIY=";
	private static FingerMatchService fingerMatchService = new FingerMatchService();
	private static Map<String, Object> match = new HashMap<String, Object>();

	public static void main(String[] args)
	{
		System.out.println(new FingerMatchWS().match(one));
	}

	public Map<String, Object> match(String fingercode)
	{
		match.clear();
		FingerMatch fingerMatchPort = fingerMatchService.getFingerMatchPort();
		List<Entry> entry = fingerMatchPort.match(fingercode).getEntry();
		for (Entry iStatus : entry)
			match.put(iStatus.getKey(), iStatus.getValue());
		return match;
	}
}
